
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>CSS命名规范 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../js/0.javascript.html" />
    
    
    <link rel="prev" href="1.css书写规范.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../html/0.html.html">
            
                <a href="../html/0.html.html">
            
                    
                    HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../html/1.html整体结构.html">
            
                <a href="../html/1.html整体结构.html">
            
                    
                    HTML整体结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../html/2.html代码格式.html">
            
                <a href="../html/2.html代码格式.html">
            
                    
                    HTML代码格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../html/3.html内容语义.html">
            
                <a href="../html/3.html内容语义.html">
            
                    
                    HTML内容语义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="0.css.html">
            
                <a href="0.css.html">
            
                    
                    CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="1.css书写规范.html">
            
                <a href="1.css书写规范.html">
            
                    
                    CSS书写规范
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="2.css命名规范.html">
            
                <a href="2.css命名规范.html">
            
                    
                    CSS命名规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../js/0.javascript.html">
            
                <a href="../js/0.javascript.html">
            
                    
                    JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../js/1.javascript-es6.html">
            
                <a href="../js/1.javascript-es6.html">
            
                    
                    es6
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../图片规范/图片规范.html">
            
                <a href="../图片规范/图片规范.html">
            
                    
                    图片规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../前端研发流程/前端研发流程.html">
            
                <a href="../前端研发流程/前端研发流程.html">
            
                    
                    前端研发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../项目/0.项目.html">
            
                <a href="../项目/0.项目.html">
            
                    
                    项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../项目/1.食尚购.html">
            
                <a href="../项目/1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../文档/0.文档.html">
            
                <a href="../文档/0.文档.html">
            
                    
                    文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../文档/1.食尚购.html">
            
                <a href="../文档/1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../文档/2.门店EDI.html">
            
                <a href="../文档/2.门店EDI.html">
            
                    
                    门店EDI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../文档/3.掌中宝.html">
            
                <a href="../文档/3.掌中宝.html">
            
                    
                    掌中宝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../文档/4.食尚购小程序.html">
            
                <a href="../文档/4.食尚购小程序.html">
            
                    
                    食尚购小程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >CSS命名规范</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="1&#x5E38;&#x7528;&#x7684;css&#x547D;&#x540D;&#x89C4;&#x5219;">1.&#x5E38;&#x7528;&#x7684;CSS&#x547D;&#x540D;&#x89C4;&#x5219;</h3>
<table>
<thead>
<tr>
<th>&#x533A;&#x57DF;</th>
<th>&#x5EFA;&#x8BAE;&#x547D;&#x540D;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x5934;</td>
<td>header</td>
<td></td>
</tr>
<tr>
<td>&#x5185;&#x5BB9;</td>
<td>content/container</td>
</tr>
<tr>
<td>&#x5C3E;</td>
<td>footer</td>
</tr>
<tr>
<td>&#x5BFC;&#x822A;</td>
<td>nav</td>
</tr>
<tr>
<td>&#x4FA7;&#x680F;</td>
<td>sidebar</td>
</tr>
<tr>
<td>&#x680F;&#x76EE;</td>
<td>column</td>
</tr>
<tr>
<td>&#x9875;&#x9762;&#x5916;&#x56F4;&#x63A7;&#x5236;&#x6574;&#x4F53;&#x4F48;&#x5C40;&#x5BBD;&#x5EA6;</td>
<td>wrapper</td>
</tr>
<tr>
<td>&#x5DE6;&#x53F3;&#x4E2D;</td>
<td>left right center</td>
</tr>
<tr>
<td>&#x767B;&#x5F55;&#x6761;</td>
<td>loginbar</td>
</tr>
<tr>
<td>&#x6807;&#x5FD7;</td>
<td>logo</td>
</tr>
<tr>
<td>&#x5E7F;&#x544A;</td>
<td>banner</td>
</tr>
<tr>
<td>&#x9875;&#x9762;&#x4E3B;&#x4F53;</td>
<td>main</td>
</tr>
<tr>
<td>&#x70ED;&#x70B9;</td>
<td>hot</td>
</tr>
<tr>
<td>&#x65B0;&#x95FB;</td>
<td>news</td>
</tr>
<tr>
<td>&#x4E0B;&#x8F7D;</td>
<td>download</td>
</tr>
<tr>
<td>&#x5B50;&#x5BFC;&#x822A;</td>
<td>subnav</td>
</tr>
<tr>
<td>&#x83DC;&#x5355;</td>
<td>menu</td>
</tr>
<tr>
<td>&#x5B50;&#x83DC;&#x5355;</td>
<td>submenu</td>
</tr>
<tr>
<td>&#x641C;&#x7D22;</td>
<td>search</td>
</tr>
<tr>
<td>&#x53CB;&#x60C5;&#x94FE;&#x63A5;</td>
<td>friendlink</td>
</tr>
<tr>
<td>&#x9875;&#x811A;</td>
<td>footer</td>
</tr>
<tr>
<td>&#x7248;&#x6743;</td>
<td>copyright</td>
</tr>
<tr>
<td>&#x6EDA;&#x52A8;</td>
<td>scroll</td>
</tr>
<tr>
<td>&#x5185;&#x5BB9;</td>
<td>content</td>
</tr>
<tr>
<td>&#x6807;&#x7B7E;</td>
<td>tags</td>
</tr>
<tr>
<td>&#x6587;&#x7AE0;&#x5217;&#x8868;&#xFF1A;list</td>
</tr>
<tr>
<td>&#x63D0;&#x793A;&#x4FE1;&#x606F;&#xFF1A;msg</td>
</tr>
<tr>
<td>&#x5C0F;&#x6280;&#x5DE7;&#xFF1A;tips</td>
</tr>
<tr>
<td>&#x680F;&#x76EE;&#x6807;&#x9898;&#xFF1A;title</td>
</tr>
<tr>
<td>&#x52A0;&#x5165;</td>
<td>joinus</td>
</tr>
<tr>
<td>&#x6307;&#x5357;</td>
<td>guide</td>
</tr>
<tr>
<td>&#x670D;&#x52A1;</td>
<td>service</td>
</tr>
<tr>
<td>&#x6CE8;&#x518C;</td>
<td>register</td>
</tr>
<tr>
<td>&#x72B6;&#x6001;</td>
<td>status</td>
</tr>
<tr>
<td>&#x6295;&#x7968;</td>
<td>vote</td>
</tr>
<tr>
<td>&#x5408;&#x4F5C;&#x4F19;&#x4F34;</td>
<td>partner</td>
</tr>
</tbody>
</table>
<h4 id="2id&#x7684;&#x547D;&#x540D;">2.id&#x7684;&#x547D;&#x540D;:</h4>
<ol>
<li>&#x9875;&#x9762;&#x7ED3;&#x6784;</li>
</ol>
<table>
<thead>
<tr>
<th>&#x533A;&#x57DF;</th>
<th>&#x5EFA;&#x8BAE;&#x547D;&#x540D;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x5BB9;&#x5668;</td>
<td>container</td>
</tr>
<tr>
<td>&#x9875;&#x5934;</td>
<td>header</td>
</tr>
<tr>
<td>&#x5185;&#x5BB9;</td>
<td>content/container</td>
</tr>
<tr>
<td>&#x9875;&#x9762;&#x4E3B;&#x4F53;</td>
<td>main</td>
</tr>
<tr>
<td>&#x9875;&#x5C3E;</td>
<td>footer</td>
</tr>
<tr>
<td>&#x5BFC;&#x822A;</td>
<td>nav</td>
</tr>
<tr>
<td>&#x4FA7;&#x680F;</td>
<td>sidebar</td>
</tr>
<tr>
<td>&#x680F;&#x76EE;</td>
<td>column</td>
</tr>
<tr>
<td>&#x9875;&#x9762;&#x5916;&#x56F4;&#x63A7;&#x5236;&#x6574;&#x4F53;&#x4F48;&#x5C40;&#x5BBD;&#x5EA6;</td>
<td>wrapper</td>
</tr>
<tr>
<td>&#x5DE6;&#x53F3;&#x4E2D;</td>
<td>left right center</td>
</tr>
</tbody>
</table>
<ol>
<li>&#x5BFC;&#x822A;</li>
</ol>
<table>
<thead>
<tr>
<th>&#x533A;&#x57DF;</th>
<th>&#x5EFA;&#x8BAE;&#x547D;&#x540D;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x5BFC;&#x822A;</td>
<td>nav</td>
</tr>
<tr>
<td>&#x4E3B;&#x5BFC;&#x822A;</td>
<td>mainnav</td>
</tr>
<tr>
<td>&#x5B50;&#x5BFC;&#x822A;</td>
<td>subnav</td>
</tr>
<tr>
<td>&#x9876;&#x5BFC;&#x822A;</td>
<td>topnav</td>
</tr>
<tr>
<td>&#x8FB9;&#x5BFC;&#x822A;</td>
<td>sidebar</td>
</tr>
<tr>
<td>&#x5DE6;&#x5BFC;&#x822A;</td>
<td>leftsidebar</td>
</tr>
<tr>
<td>&#x53F3;&#x5BFC;&#x822A;</td>
<td>rightsidebar</td>
</tr>
<tr>
<td>&#x83DC;&#x5355;</td>
<td>menu</td>
</tr>
<tr>
<td>&#x5B50;&#x83DC;&#x5355;</td>
<td>submenu</td>
</tr>
<tr>
<td>&#x6807;&#x9898;</td>
<td>title</td>
</tr>
<tr>
<td>&#x6458;&#x8981;</td>
<td>summary</td>
</tr>
</tbody>
</table>
<ol>
<li>&#x529F;&#x80FD;</li>
</ol>
<table>
<thead>
<tr>
<th>&#x533A;&#x57DF;</th>
<th>&#x5EFA;&#x8BAE;&#x547D;&#x540D;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x6807;&#x5FD7;</td>
<td>logo</td>
</tr>
<tr>
<td>&#x5E7F;&#x544A;</td>
<td>banner</td>
</tr>
<tr>
<td>&#x767B;&#x9646;</td>
<td>login</td>
</tr>
<tr>
<td>&#x767B;&#x5F55;&#x6761;</td>
<td>loginbar</td>
</tr>
<tr>
<td>&#x6CE8;&#x518C;</td>
<td>register</td>
</tr>
<tr>
<td>&#x641C;&#x7D22;</td>
<td>search</td>
</tr>
<tr>
<td>&#x529F;&#x80FD;&#x533A;</td>
<td>shop</td>
</tr>
<tr>
<td>&#x6807;&#x9898;</td>
<td>title</td>
</tr>
<tr>
<td>&#x52A0;&#x5165;</td>
<td>joinus</td>
</tr>
<tr>
<td>&#x72B6;&#x6001;</td>
<td>status</td>
</tr>
<tr>
<td>&#x6309;&#x94AE;</td>
<td>btn</td>
</tr>
<tr>
<td>&#x6EDA;&#x52A8;</td>
<td>scroll</td>
</tr>
<tr>
<td>&#x6807;&#x7C64;&#x9875;</td>
<td>tab</td>
</tr>
<tr>
<td>&#x6587;&#x7AE0;&#x5217;&#x8868;</td>
<td>list</td>
</tr>
<tr>
<td>&#x63D0;&#x793A;&#x4FE1;&#x606F;</td>
<td>msg</td>
</tr>
<tr>
<td>&#x5F53;&#x524D;&#x7684;</td>
<td>current</td>
</tr>
<tr>
<td>&#x5C0F;&#x6280;&#x5DE7;</td>
<td>tips</td>
</tr>
<tr>
<td>&#x56FE;&#x6807;</td>
<td>icon</td>
</tr>
<tr>
<td>&#x6CE8;&#x91CA;</td>
<td>note</td>
</tr>
<tr>
<td>&#x6307;&#x5357;</td>
<td>guide</td>
</tr>
<tr>
<td>&#x670D;&#x52A1;</td>
<td>service</td>
</tr>
<tr>
<td>&#x70ED;&#x70B9;</td>
<td>hot</td>
</tr>
<tr>
<td>&#x65B0;&#x95FB;</td>
<td>news</td>
</tr>
<tr>
<td>&#x4E0B;&#x8F7D;</td>
<td>download</td>
</tr>
<tr>
<td>&#x6295;&#x7968;</td>
<td>vote</td>
</tr>
<tr>
<td>&#x5408;&#x4F5C;&#x4F19;&#x4F34;</td>
<td>partner</td>
</tr>
<tr>
<td>&#x53CB;&#x60C5;&#x94FE;&#x63A5;</td>
<td>link</td>
</tr>
<tr>
<td>&#x7248;&#x6743;</td>
<td>copyright</td>
</tr>
</tbody>
</table>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="1.css书写规范.html" class="navigation navigation-prev " aria-label="Previous page: CSS书写规范">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../js/0.javascript.html" class="navigation navigation-next " aria-label="Next page: JavaScript">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"CSS命名规范","level":"1.3.2","depth":2,"next":{"title":"JavaScript","level":"1.4","depth":1,"path":"js/0.javascript.md","ref":"js/0.javascript.md","articles":[{"title":"es6","level":"1.4.1","depth":2,"path":"js/1.javascript-es6.md","ref":"js/1.javascript-es6.md","articles":[]}]},"previous":{"title":"CSS书写规范","level":"1.3.1","depth":2,"path":"css/1.css书写规范.md","ref":"css/1.css书写规范.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"css/2.css命名规范.md","mtime":"2019-10-12T05:14:43.060Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-02T00:51:07.028Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

